package com.worthtech.billportal.bean;

import java.sql.Timestamp;

/**
 * WtSmsInfo entity. @author MyEclipse Persistence Tools
 */

public class WtSmsInfo implements java.io.Serializable {


	private String smsMgrCde;
	private String smsType;
	private String smsMobile;
	private String smsName;
	private Timestamp smsDate;

	// Constructors

	/** default constructor */
	public WtSmsInfo() {
	}

	/** minimal constructor */
	public WtSmsInfo(String smsMgrCde, String smsMobile) {
		this.smsMgrCde = smsMgrCde;
		this.smsMobile = smsMobile;
	}

	/** full constructor */
	public WtSmsInfo(String smsMgrCde, String smsType, String smsMobile,
			String smsName, Timestamp smsDate) {
		this.smsMgrCde = smsMgrCde;
		this.smsType = smsType;
		this.smsMobile = smsMobile;
		this.smsName = smsName;
		this.smsDate = smsDate;
	}

	// Property accessors

	public String getSmsMgrCde() {
		return this.smsMgrCde;
	}

	public void setSmsMgrCde(String smsMgrCde) {
		this.smsMgrCde = smsMgrCde;
	}

	public String getSmsType() {
		return this.smsType;
	}

	public void setSmsType(String smsType) {
		this.smsType = smsType;
	}

	public String getSmsMobile() {
		return this.smsMobile;
	}

	public void setSmsMobile(String smsMobile) {
		this.smsMobile = smsMobile;
	}

	public String getSmsName() {
		return this.smsName;
	}

	public void setSmsName(String smsName) {
		this.smsName = smsName;
	}

	public Timestamp getSmsDate() {
		return this.smsDate;
	}

	public void setSmsDate(Timestamp smsDate) {
		this.smsDate = smsDate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtSmsInfo))
			return false;
		WtSmsInfo castOther = (WtSmsInfo) other;

		return ((this.getSmsMgrCde() == castOther.getSmsMgrCde()) || (this
				.getSmsMgrCde() != null
				&& castOther.getSmsMgrCde() != null && this.getSmsMgrCde()
				.equals(castOther.getSmsMgrCde())))
				&& ((this.getSmsType() == castOther.getSmsType()) || (this
						.getSmsType() != null
						&& castOther.getSmsType() != null && this.getSmsType()
						.equals(castOther.getSmsType())))
				&& ((this.getSmsMobile() == castOther.getSmsMobile()) || (this
						.getSmsMobile() != null
						&& castOther.getSmsMobile() != null && this
						.getSmsMobile().equals(castOther.getSmsMobile())))
				&& ((this.getSmsName() == castOther.getSmsName()) || (this
						.getSmsName() != null
						&& castOther.getSmsName() != null && this.getSmsName()
						.equals(castOther.getSmsName())))
				&& ((this.getSmsDate() == castOther.getSmsDate()) || (this
						.getSmsDate() != null
						&& castOther.getSmsDate() != null && this.getSmsDate()
						.equals(castOther.getSmsDate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSmsMgrCde() == null ? 0 : this.getSmsMgrCde().hashCode());
		result = 37 * result
				+ (getSmsType() == null ? 0 : this.getSmsType().hashCode());
		result = 37 * result
				+ (getSmsMobile() == null ? 0 : this.getSmsMobile().hashCode());
		result = 37 * result
				+ (getSmsName() == null ? 0 : this.getSmsName().hashCode());
		result = 37 * result
				+ (getSmsDate() == null ? 0 : this.getSmsDate().hashCode());
		return result;
	}

}